Replace grep >&/dev/null with grep -q.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 29 Nov 2005 14:56:16 +0000 (14:56 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 29 Nov 2005 14:56:16 +0000 (14:56 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/vif-bridge

index 5144339498efc27acd93c66b725ceacdf8eeaf1d..e816c8146a150c9d4bf7428252719a1f7a14b2a7 100755 (executable)
@@ -48,7 +48,7 @@ fi
 
 case "$command" in
     online)
-        if brctl show | grep "$vif" >&/dev/null
+        if brctl show | grep -q "$vif"
         then
           log debug "$vif already attached to a bridge"
           exit 0